var model = require('../models/index.server.model');
module.exports = {
	getImgByPlace:function(req , res , next){
		var param = req.query || req.param;
		model.getImgByPlace(param , function(result){
			res.send(result);
		});
	},
	getHomeMenu:function(req , res , next){
		var param = req.query || req.param;
		var userObj = req.session.user;
		param.roleId = userObj.user.ROLE_ID;
		model.getHomeMenu(param , function(result){
			res.send(result);
		});
	}
};